package com.wlcorp.forcazamis.sys.permission;
public class PermissionXMLBuilder {
	public static final String ROOT_NODE = "permissionDef";  //根结点
    public static final String GROUP_PERMISSION = "group"; //参数顶层分组
	public static final String PAGE_PERMISSION = "page"; //参数二级分组
	public static final String SUB_PERMISSION = "sub";			   //参数
	public static final String PERMISSION_VALUE = "value";      //参数值
	public static final String PERMISSION_ATTRIBUTE_ID = "ID";  //参数惟一标识
	public static final String PERMISSION_ATTRIBUTE_TITLE = "title"; //参数中文说明
	public static final String PERMISSION_ATTRIBUTE_IMAGEPATH = "imagePath";//图片路径
	public static final String PERMISSION_ATTRIBUTE_TYPE = "type";   //参数类型
	public static final String PARAM_ATTRIBUTE_IS_ENUMERATED = "isEnumerated";  //是否枚举，是的话可以有多个value子结点
	public static final String PERMISSION_ATTRIBUTE_DESC = "desc";                   //参数含义说明
    public static final String PARAM_ATTRIBUTE_ACTION = "action"; //group的action
    public static final String PERMISSION_ATTRIBUTE_METHOD = "method";
	public static PermissionMap createPermissionMap(){
		//从配置文件读取路径
		return PermissionMap.getInstance("PermissionDef.xml");
	}
}
